<template>
  <div>
    <div class="con-footer">
      <!--      <div class="con-image-text"><span>1</span><span class="qiti-right">796&nbsp;正常</span></div>-->
      <div class="progress-out" v-if="status===1">
        <div class="progress-in" :style="{width:'80%'}">
          <div class="progress-circle"></div>
        </div>
      </div>
      <!--      <div class="con-image-text"><span>2</span><span class="qiti-error">132&nbsp;异常</span></div>-->
      <div class="progress-out" v-if="status===2">
        <div class="progress-in progress-error" :style="{width:'100%'}">
          <div class="progress-circle"></div>
        </div>
      </div>
      <!--      <div class="con-image-text"><span>3</span><span class="qiti-right">6&nbsp;正常</span></div>-->
      <div class="progress-out" v-if="status===3">
        <div class="progress-in" :style="{width:'20%'}">
          <div class="progress-circle"></div>
        </div>
      </div>
      <!--      <div class="con-image-text"><span>4</span><span class="qiti-right">56&nbsp;正常</span></div>-->
      <div class="progress-out" v-if="status===4">
        <div class="progress-in" :style="{width:'58%'}">
          <div class="progress-circle"></div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "process_component",
  props: {
    status: Number
  }
}
</script>

<style scoped lang="scss">
.con-footer {
  text-align: left;

  .con-image-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .progress-out {
    width: 100%;
    height: 12px;
    margin-bottom: 26px;
    background-color: rgba(126, 165, 189, 0.3);
    border-radius: 6px;

    .progress-in {
      height: 12px;
      position: relative;
      line-height: 12px;
      background: linear-gradient(to right, #7c45f3, #4d5aec, #72a7f7, #92dae6);
      border-radius: 6px;
    }

    .progress-circle {
      position: absolute;
      top: -3px;
      right: 0;
      width: 10px;
      height: 10px;
      border: 4px solid #b0efe8;
      border-radius: 50%;
    }

    .progress-error {
      background: linear-gradient(to right, #f30707, #d64e25, #e6a13a, #eaefab)
    }
  }
}

</style>
